package crp.core.faculty.app;

import crp.core.faculty.domain.services.FacultySearcher;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;

@ApplicationScoped
public class FacultyService {
    private final Instance<FacultySearcher> searcher;

    @Inject
    public FacultyService(Instance<FacultySearcher> searcher) {
        this.searcher = searcher;
    }

    public FacultySearcher searcher(){
        return searcher.get();
    }
}
